<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>

    <script>
         //1.数组的合并
         const kuaizi=['王大力','肖扬']
         const fenghuang=["争议","零花"]
        // const heb=kuaizi.concat(fenghuang);
         const heb=[...kuaizi,...fenghuang]
         console.log(heb)
         //2.数组克隆
         const san=['E',"G","M"]
         const ye=[...san]
         console.log(ye)

         //3.将伪数组转为真正的数组
         const divs=document.querySelectorAll('div')
         const divarr=[...divs]
         console.log(divarr)
    </script>
</body>
</html>